package com.wangp.designpattern.strategymodel;



import java.util.HashMap;
import java.util.Map;

public class Context {

    {
        map.put("华为手机", new HuaWeiAdapter());
        map.put("小米手机", new XiaoMiAdapter());
    }

    public static Map<String, StrategyModel> map = new HashMap<>();


    public static StrategyModel getAdapter(String key){
        return map.get(key);
    }
}
